package 进阶.IO.字节流.输入;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class demo03 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("d:/a.txt");

        byte[] bytes = new byte[1024];

        int len = 0;
        while ((len = fis.read(bytes)) != -1){
            System.out.println(new String(bytes,0,len));
        }



    }
}
